import https from '@/plugins/luch-request_0.0.7/request'

export const upgradeBusiness = data => {
	return https.post('/apihkds/api/user/upgradeBusiness', data)
}

export const postCode = data => {
	return https.post('/apihkds/api/user/wxapp/session', data)
}

export const getUserInfo = data => {
	return https.post('/apihkds/api/user/wxapp/mobile', data)
}

export const wxLogin = data => {
	return https.post('/api/v4/user/wxapp/login', data)
}

export const postWxCode = data => {
	return https.post('/api/v4/user/wxapp/session', data)
}

export const getWxUserInfo = data => {
	return https.post('/api/v4/user/wxapp/decrypt', data)
}

export const loginToRole = data => {
	return https.post('/apihkds/api/user/loginToRole', data)
}
